package com.aditya.testmvcapp.domain;

import javax.validation.constraints.Size;

import org.springframework.stereotype.Component;

@Component
public class PriceIncrease {
	
	@Size(min=3, max=20, message=
			"Description must be between 3 and 20 characters long.")
	private String description;
	
	private double percentage;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public double getPercentage() {
		return percentage;
	}

	public void setPercentage(double percentage) {
		this.percentage = percentage;
	}
	
	
}
